home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr35 / tx2mb242.zip / NASAMAIL.BAT < prev    next >
DOS Batch File  |  1993-06-29  |  2KB  |  24 lines

  1. @echo off
  2. rem ┌────────────────────────────────────────────────────────────────────────┐
  3. rem │ This example batchfile finds any new textfiles in the NASA directory   │
  4. rem │ with a given extension and imports them as messages.  Note that the    │
  5. rem │ "-pine" switches are used to force the message: Public, Tagline added, │
  6. rem │ no textfile header control, and Echo message.  The first line has a -l │
  7. rem │ switch in place of the -e since that conference is local, not echo.    │
  8. rem │                                                                        │
  9. rem │ We're importing to conferences 2, 102, 154, and 204.                   │
  10. rem │ Since no -s (subject) is specified, the subject will be the filename.  │
  11. rem │ The -p makes the messages public, which defaults to a TO of "ALL".     │
  12. rem │ The -fSYSOP forces the messages to be from "SYSOP".                    │
  13. rem │ The -k95 is used to limit the total number of lines per message to 95. │
  14. rem │ The -x3 limits TXT2MSG to create a maximum of 3 messages per source.   │
  15. rem └────────────────────────────────────────────────────────────────────────┘
  16. echo TXT2MSG Process NASA files into message bases...
  17. TXT2MSG   2 -pinl -fSYSOP -x10 -k400 f:\nasa\*.*
  18. TXT2MSG 102 -pine -fSYSOP -x3  -k95  f:\nasa\*.rel f:\nasa\*.shu f:\nasa\*.mcc
  19. TXT2MSG 154 -pine -fSYSOP -x3  -k95  f:\nasa\*.voy f:\nasa\*.gal f:\nasa\*.hst
  20. TXT2MSG 204 -pine -fSYSOP -x3  -k95  f:\nasa\*.*
  21.  
  22. echo Delete NASA files from working directory...
  23. for %%a in (f:\nasa\*.*) do del %%a
  24.